package light.network;

public class ByteData {

	byte[] data;
	int start;
	int length;
	
	public ByteData(){}

	public ByteData(byte[] data, int start, int length){
		this.data = data;
		this.length = length;
		this.start = start;
	}
	

	public ByteData(byte[] data, int start){
		this.data = data;
		this.length = data.length-start;
		this.start = start;
	}
	
	public byte[] array() {
		return data;
	}
	public void setData(byte[] data) {
		this.data = data;
	}
	public int start() {
		return start;
	}
	public void setStart(int start) {
		this.start = start;
	}
	public int length() {
		return length;
	}
	public void setLength(int length) {
		this.length = length;
	}
	
}
